package com.demo.provider;

import com.demo.bean.CustomerDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;


/**
 * CustomerProvider
 *
 * @author liujin
 * @date 2020/11/4 14:45
 */
@FeignClient(value = "customer", fallback = CustomerProviderFallback.class)
public interface CustomerProvider {

    @PostMapping("/customer")
    String customer(@RequestBody @Valid CustomerDTO dto);
}
